package template.demo2;

/**
 * 试卷抽象类.
 *
 * @author GongXincheng
 * @since 2019-09-17 18:08
 */
abstract class BasePaperTest {

    void question1() {
        System.out.println("1 + 1 = ？");
        System.out.println("A：1");
        System.out.println("B：2");
        System.out.println("C：3");
        System.out.println("D：4");
        System.out.println("答案：" + answer1());
    }

    void question2() {
        System.out.println("2 + 1 = ？");
        System.out.println("A：1");
        System.out.println("B：2");
        System.out.println("C：3");
        System.out.println("D：4");
        System.out.println("答案：" + answer2());
    }

    void question3() {
        System.out.println("4 + 1 = ？");
        System.out.println("A：1");
        System.out.println("B：2");
        System.out.println("C：3");
        System.out.println("D：4");
        System.out.println("答案：" + answer3());
    }

    abstract String answer1();

    abstract String answer2();

    abstract String answer3();

}
